import os
import pypyodbc
import requests
import time

path = '//192.168.3.7/zz/20219.mdb'
# 读取本地文件
connStr = 'Driver={Microsoft Access Driver (*.mdb)};DBQ=' + path
conn = pypyodbc.win_connect_mdb(connStr)
cur = conn.cursor()
sql = "SELECT * FROM " + 'JieGuo'  # 取表 ActualValues_T
cur.execute(sql)
alldata = cur.fetchall()
print(alldata)

# while True:
#     result = requests.get('http://127.0.0.1:8079/bi/index')
#     content = result.content.decode("utf-8")
#     print(content)
#     time.sleep(10)